package com.example.resourceSharingPlatform.entity;

public class Transaction {
    private int id;//交易订单编号
    private String time;//下单时间
    private String lender_id;//借出者id
    private String borrow_id;//借入者id
    private int rentalTime;//租借时间
    private String state;//交易完成状态，-1代表交易被拒绝，0代表交易待确认，1代表交易进行中， 2代表交易已完成
    private double amount;//金额
    private int item_id;//商品号
//    private double timeout_period;//超时时长
//    private double timeout_fine;//罚金
//    private double trans_period;//交易时长

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getLender_id() {
        return lender_id;
    }

    public void setLender_id(String lender_id) {
        this.lender_id = lender_id;
    }

    public String getBorrow_id() {
        return borrow_id;
    }

    public void setBorrow_id(String borrow_id) {
        this.borrow_id = borrow_id;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public int getItem_id() {
        return item_id;
    }

    public void setItem_id(int item_id) {
        this.item_id = item_id;
    }

    public int getRentalTime() {
        return rentalTime;
    }

    public void setRentalTime(int rentalTime) {
        this.rentalTime = rentalTime;
    }
}
